﻿package Map {
	
	import Component.Slab;
	import Component.Bomb;
	
	public class Trap extends Block {
		
		private var _bomb_pool:BombPool;
		public function set bomb_pool(_bomb_pool:BombPool) {
			this._bomb_pool = _bomb_pool;
		}
		
		public function Trap() {
		}
		
		public function explode() {
			var bomb:Bomb = _bomb_pool.grab();
			bomb.setPosition(pos_x,pos_y);
			bomb.explode(4);
		}
		
		public override function onMapReset() {
			visible = false;
		}
	}
	
}
